package cn.imvc.app.controllers.member;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;

import cn.imvc.app.entities.Bankcard;
import cn.imvc.app.models.BankcardModel;
import cn.imvc.data.domain.ViewRequest;

/**
 * 
 * @author wujx
 * @time 2016年7月30日
 *
 */
public class BankcardControllerImpl implements BankcardController {
	public Page<Bankcard> page;
	public ViewRequest viewRequest;
	private int id;
	private int memberId;
	
	@Autowired
	private BankcardModel bankcardModel;
	
	
	public String search() {
		// TODO Auto-generated method stub
		return null;
	}

	public String index() {
		page = bankcardModel.findByMemberId(viewRequest,memberId);
		return "bank-card/index";
	}

	public String show() {
		// TODO Auto-generated method stub
		return null;
	}

	public String editNew() {
		// TODO Auto-generated method stub
		return null;
	}

	public String create() {
		// TODO Auto-generated method stub
		return null;
	}

	public String edit() {
		// TODO Auto-generated method stub
		return null;
	}

	public String update() {
		// TODO Auto-generated method stub
		return null;
	}

	public String destroy() {
		// TODO Auto-generated method stub
		return null;
	}

	public String destroyBatch() {
		// TODO Auto-generated method stub
		return null;
	}


	public ViewRequest getViewRequest() {
		return viewRequest;
	}

	public void setViewRequest(ViewRequest viewRequest) {
		this.viewRequest = viewRequest;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getMemberId() {
		return memberId;
	}

	public void setMemberId(int memberId) {
		this.memberId = memberId;
	}

	public Page<Bankcard> getPage() {
		return page;
	}

	public void setPage(Page<Bankcard> page) {
		this.page = page;
	}
	

}
